// const key = 'e7444371002826d996e46e894f700814'
const key = '295dc3a0220b458955ec25c5af617b3a'
/* 天地图 */
const gaode = new ol.layer.Tile({
  title: 'gaode',
  source: new ol.source.XYZ({
    url:
      'http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=' + key,
    wrapX: false,
    crossOrigin: 'Anonymous', //设置数据源跨域
  }),
})
const image = new ol.layer.Tile({
  title: 'image',
  source: new ol.source.XYZ({
    url:
      'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=' + key,
    wrapX: false,
    crossOrigin: 'Anonymous', //设置数据源跨域
  }),
})
export { gaode, image }
